import { ocrImage, OcrTypeEnum } from './api';
import path from 'path';
import fs from 'fs';

ocrImage(path.resolve(__dirname, '../../from/10345.jpg'), OcrTypeEnum.标准精度).then(res => {
  fs.writeFileSync(path.resolve(__dirname, '../../dist/result4.json'), JSON.stringify(res));
});